package com.ruoyi.utils;

import java.util.UUID;

public class LongUUIDGeneratorUtil {
    public static long generateLongUUID() {
        UUID uuid = UUID.randomUUID();

        long mostSignificantBits = uuid.getMostSignificantBits();
        long leastSignificantBits = uuid.getLeastSignificantBits();

        long[] longUUID = {mostSignificantBits, leastSignificantBits};

        return longUUID[0];

    }
}
